package com.wf.smartcomm.server.bean;

import java.math.BigDecimal;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

/** 
 * @author 38884306@qq.com  
 * @version ����ʱ�䣺2015-5-18 ����11:40:31 
 * 
 */
@Entity
@Table(name = "t_village")
public class Village {
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@Expose
	@Column(length = 32)
	private String name;

	@Expose
	@Column(length = 128)
	private String address;
	
	@Column(length = 4096)
	private String logo;
	
	@ManyToOne
	@JoinColumn(name = "cid")
	private Company company;
	
	/*@ManyToMany(mappedBy = "villages")
	private Set<User> users;*/
	@Expose
	@Column(length = 10)
	private String province;
	
	@Expose
	@Column(length = 10)
	private String city;
	
	@Expose
	@Column(length = 10)
	private String district;//区
	
	@Column(length = 10)
	private String area;//期
	
	@Expose
	@Column(length = 20)
	private String serviceEndDate;
	
	@Expose
	@Column(length = 20)
	private String startAt;
	
	@Expose
	@Column(length = 20)
	private String endAt;

	@Column(length = 20)
	private String createdAt;
	
	@Column(length = 20)
	private String notifyAt;
	
	@Expose
	@Column(length = 20)
	private String updateAt;
	
	@Expose
	@Column
	private Integer period;
	
	@Expose
	@Column
	private Integer type;
	
	@Expose
	@Column
	private BigDecimal price;
	
	public Integer getPeriod() {
		return period;
	}

	public void setPeriod(Integer period) {
		this.period = period;
	}

	public String getNotifyAt() {
		return notifyAt;
	}

	public void setNotifyAt(String notifyAt) {
		this.notifyAt = notifyAt;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Village(String vid) {
		this.objectId = vid;
	}

	public Village() {
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

	public String getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getServiceEndDate() {
		return serviceEndDate;
	}

	public void setServiceEndDate(String serviceEndDate) {
		this.serviceEndDate = serviceEndDate;
	}

	public String getStartAt() {
		return startAt;
	}

	public void setStartAt(String startAt) {
		this.startAt = startAt;
	}

	public String getEndAt() {
		return endAt;
	}

	public void setEndAt(String endAt) {
		this.endAt = endAt;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
}
